/*
 * Created on 2005-7-11
 *
 */
package com.et114.components.ldap4oj.support;

import javax.naming.NamingException;

import org.springframework.dao.DataAccessException;
public interface LdapExceptionTranslater {
    

    /**
     * Translate the given Ldap exception into a generic data access exception
     * 
     * @param task
     *            readable text describing the task being attempted
     * @param namingex
     *            NamingException encountered by Ldap implementation
     * @return the generic exception representing the ldap specific exception
     */
    DataAccessException translate(String task, NamingException namingex);

}
